package com.common.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @Description
 * @Author tm
 * @Date 2022-12-08 19:35
 **/
@Configuration
@ConfigurationProperties(prefix = "spring.sys")

public class SysConfig {
    public static int getJobSwitch() {
        return jobSwitch;
    }

    public void setJobSwitch(int jobSwitch) {
        this.jobSwitch = jobSwitch;
    }

    @Value("${spring.sys.jobSwitch}")
    private static   int jobSwitch;
}
